package com.woniuxy.order.feign;

import com.woniuxy.core.model.Result;
import com.woniuxy.order.dto.CertifiedAccountInfoDto;
import com.woniuxy.order.model.dto.CertifiedInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "certified-server")
@ComponentScan
public interface CertifiedClient {

    @GetMapping("/certified/certifiedInfo/findCertifiedById")
    Result<CertifiedInfo> findCertifiedInfoById(@RequestParam("certifiedInfoId") Integer centifiedInfoId);

    @GetMapping("/certified/certifiedAccount/getAccountInfo")
    Result<CertifiedAccountInfoDto> getAccountInfo(@RequestParam("id") String id);
}
